import numpy as np
from matplotlib import pyplot as plt
import math


def f1(x):
    return (x - 3) * (x + 4) * (x - 1) + 7


def f2(x):
    return x * x + 6


x = np.linspace(-5, 5)
print(x)

y = f1(x)
z = f2(x)

plt.plot(x, y, 'r')
plt.plot(x, z, 'g')
plt.show()
